package cn.lyh.service;

import cn.lyh.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "NACOS-PAYMENT-SERVICE",fallback = PaymentFallbackService.class)
public interface PaymentService {
    @GetMapping("/payment/{id}")
    CommonResult<String> payment(@PathVariable("id")Long id);
}
